//
//  LGEndView.m
//  lgdw
//
//  Created by mac on 16/1/19.
//  Copyright © 2016年 Apple. All rights reserved.
//

#import "LGEndView.h"


@interface LGEndView ()
@property (nonatomic , strong) UILabel *titleLabel;

@end

@implementation LGEndView

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        [self setupUI];
    }
    return self;
}


- (void)setupUI {
    self.backgroundColor = [[UIColor alloc] initWithWhite:0.85 alpha:0.5];
    // 添加控件
    [self addSubview:self.titleLabel];
    
    
    // 布局控件
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(self.mas_centerX);
        make.centerY.mas_equalTo(self.mas_centerY);
    }];
    
    
}

- (UILabel *)titleLabel {
    if (_titleLabel == nil) {
        
        _titleLabel = [[UILabel alloc] initWithTitle:@"已结束" FontSize:12 TextColor:[UIColor whiteColor]];
    }
    return _titleLabel;
}

@end
